package com.yonyou.cyxdms.sysAuth.service.service.notification;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yonyou.cyx.framework.service.base.ICommonService;
import com.yonyou.cyxdms.sysAuth.service.dto.notification.NotificationFeedbackDTO;
import com.yonyou.cyxdms.sysAuth.service.entity.notification.NotificationFeedbackPO;
import com.yonyou.cyxdms.sysAuth.service.vo.notification.NotificationSearchVO;
import com.yonyou.cyxdms.sysAuth.service.vo.notification.NotificationUserVO;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * <p>
 * 通知通告反馈记录表 服务类
 * </p>
 *
 * @author chengliang
 * @since 2019-09-25
 */
public interface NotificationFeedbackService extends ICommonService<NotificationFeedbackDTO, NotificationFeedbackPO,Long> {

    void exportExcel(Map<String, Object> queryParam, HttpServletRequest request, HttpServletResponse response);

    IPage<Map<String, Object>> getNotificationList(Page<Map<String, Object>> page, Map<String, Object> queryCondition);

    Integer selectbyuid(Integer notificationId, Integer userId);

    /**
     * 厂端员工公告查看
     * 李贺
     * 2019/12/4
     */
    Page<NotificationUserVO> factoryUserNotification(Page<NotificationUserVO> page, NotificationSearchVO notificationSearchVO);

    /**
     * 厂端员工公告查看后新增一条状态
     * 李贺
     * 2019/12/4
     */
    NotificationUserVO addFactoryBack(Long notificationId);
}
